package com.erp.system.service.impl;

import com.erp.system.domain.BsArea;
import com.erp.system.domain.BsCity;
import com.erp.system.domain.BsProvince;
import com.erp.system.domain.BsStreet;
import com.erp.system.mapper.BsProvinceMapper;
import com.erp.system.service.BsProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BsProvinceServiceImpl implements BsProvinceService {

    @Autowired
    private BsProvinceMapper bsProvinceMapper;


    @Override
    public List<BsProvince> AllBsProvince() {
        return bsProvinceMapper.AllBsProvince();
    }

    @Override
    public List<BsCity> AllBsCity(String provinceCode) {
        return bsProvinceMapper.AllBsCity(provinceCode);
    }

    @Override
    public List<BsArea> AllBsArea(String cityCode) {
        return bsProvinceMapper.AllBsArea(cityCode);
    }

    @Override
    public List<BsStreet> AllBsStreet(String areaCode) {
        return bsProvinceMapper.AllBsStreet(areaCode);
    }
}
